<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let array = [1, 3, 4];
        // console.log(array.length);
        //这种方式一般不用
        // let hd = ["hdcms"];
        // hd[3] = "houdunren";
        // console.log(hd.length);
        // console.log(hd[2]);
        // console.log(hd);
        let cms = new Array(6); //6个空元素 1,2 是表示长度2 的数组
        let arr = Array.of(6);
        console.log(arr.length);
        console.log(arr);
    </script>
</body>

</html>